<?php

declare (strict_types=1);
namespace App\Model;

use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;
/**
 * @property integer $id
 * @property integer $user_id 用户ID
 * @property string $title 活动标题
 * @property string $content 活动内容
 * @property integer $user_limit 人数限制
 * @property string $sign_rules 签到规则
 * @property string $sign_fields 自定义字段
 * @property integer $sign_type 签到类型
 * @property integer $allow_later_sign 是否允许补签
 * @property integer $status 模板状态
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 * @property \Carbon\Carbon $deleted_at
 */
class MeetingTemplate extends Model
{
    use SoftDeletes;

    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'meeting_template';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = ['id', 'user_id', 'title', 'content', 'user_limit', 'sign_type','allow_later_sign', 'sign_rules', 'sign_fields', 'status', 'created_at', 'updated_at', 'deleted_at'];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = ['user_limit'=>'integer', 'sign_type'=>'integer', 'allow_later_sign'=>'integer', 'status'=>'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'deleted_at'=>'datetime'];
}
